import service from '@/utils/request'

// @Tags LevelTwo
// @Summary 创建LevelTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LevelTwo true "创建LevelTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /levelTwo/createLevelTwo [post]
export const createLevelTwo = (data) => {
  return service({
    url: '/levelTwo/createLevelTwo',
    method: 'post',
    data
  })
}

// @Tags LevelTwo
// @Summary 删除LevelTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LevelTwo true "删除LevelTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /levelTwo/deleteLevelTwo [delete]
export const deleteLevelTwo = (data) => {
  return service({
    url: '/levelTwo/deleteLevelTwo',
    method: 'delete',
    data
  })
}

// @Tags LevelTwo
// @Summary 删除LevelTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除LevelTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /levelTwo/deleteLevelTwo [delete]
export const deleteLevelTwoByIds = (data) => {
  return service({
    url: '/levelTwo/deleteLevelTwoByIds',
    method: 'delete',
    data
  })
}

// @Tags LevelTwo
// @Summary 更新LevelTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LevelTwo true "更新LevelTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /levelTwo/updateLevelTwo [put]
export const updateLevelTwo = (data) => {
  return service({
    url: '/levelTwo/updateLevelTwo',
    method: 'put',
    data
  })
}

// @Tags LevelTwo
// @Summary 用id查询LevelTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.LevelTwo true "用id查询LevelTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /levelTwo/findLevelTwo [get]
export const findLevelTwo = (params) => {
  return service({
    url: '/levelTwo/findLevelTwo',
    method: 'get',
    params
  })
}

// @Tags LevelTwo
// @Summary 分页获取LevelTwo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取LevelTwo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /levelTwo/getLevelTwoList [get]
export const getLevelTwoList = (params) => {
  return service({
    url: '/levelTwo/getLevelTwoList',
    method: 'get',
    params
  })
}

// @Tags LevelTwo
// @Summary 根据ID集合获取二级目录列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "根据ID集合获取二级目录列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /levelTwo/getLevelTwoListByIds [get]
export const getLevelTwoListByIds = (params) => {
  return service({
    url: '/levelTwo/getLevelTwoListByIds',
    method: 'get',
    params
  })
}